package pl.maciejziarko.mshare.web.mvc;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author Maciej Ziarko
 */
@Controller
public class HomeController {

    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String homeGet(Model model) {
        return View.HOME;
    }

    @RequestMapping(value = "/error", method = RequestMethod.GET)
    public String errorGet(Model model) {
        return View.ERROR;
    }

}
